@import "./variable.scss";
// universal style
* {
  margin: 0;
  padding: 0;
}
a:link,a:visited,a:hover,a:active{
  text-decoration:none;
  color:$color-black;
}
li{
  list-style: none;
}

//body
body {
  position: relative;
  width: 10.8rem;
  min-height: 100vh;
  margin: 0 auto;
}

//header
header {
  height: 1.2rem;
  width: 10.8rem;
  margin: 0 auto;
  padding: 0 0.28rem;
  overflow: hidden;
  border-bottom: 1px solid rgb(238, 238, 238);
  line-height: 1.2rem;
  font-size: $font-title;
  text-align: center;
  background-color: $color-white;
  span {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-top: 0.1rem solid rgb(158, 158, 158);
    border-bottom: 0.1rem solid rgb(158, 158, 158);
    background-color: rgb(158, 158, 158);
    padding: 0.1rem 0;
    background-clip: content-box;
    margin-top: 0.41rem;
    margin-bottom: 0.33rem;
    float: left;
  }
  p {
    float: right;
    line-height: 1.2rem;
    font-size: $font-title;
  }
}

//personalPanel
#layer {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}
.personalPanel {
  width: 0%;
  height: 100%;
  overflow: hidden;
  min-height: 14rem;
  background-color: $color-bgcolor;
  position: absolute;
  top: 0;
  left: 0;

  .personalPanel__title {
    img {
      display: block;
      width: 1.6rem;
      height: 1.6rem;
      border-radius: 0.8rem;
      margin: 0.6rem auto 0.3rem;
    }
    span {
      font-size: $font-normal;
      text-align: center;
      width: 1.6rem;
      display: block;
      margin: 0 auto 0.85rem;
    }
  }
  .personalPanel__list {
    ul {
      width: 100%;
      font-size: $font-normal;
      li {
        width: 100%;
        height: 1rem;
        overflow: hidden;
        background-color: $color-white;
        div {
          width: 2.6rem;
          margin: 0.25rem auto 0;
          text-indent: 0.8rem;
        }
        &:nth-child(1) {
          margin-bottom: 0.2rem;
          div {
            background: url(../../images/workpanel.png) no-repeat left center;
            color: $color-red;
            background-size: 0.46rem 0.41rem;
          }
        }
        &:nth-child(2) {
          border-bottom:1px solid #fafafa;
          div {
            background: url(../../images/emergencyMaintenance.png) no-repeat left center;
            background-size: 0.46rem 0.41rem;
          }
        }
        &:nth-child(3) {
          margin-bottom: 0.2rem;
          div {
            background: url(../../images/planMaintenance.png) no-repeat left center;
            background-size: 0.46rem 0.41rem;
          }
        }
        &:nth-child(4) {
          margin-bottom: 0.2rem;
          div {
            background: url(../../images/myMessage.png) no-repeat left center;
            background-size: 0.46rem 0.41rem;
          }
        }
        &:nth-child(5) {
          border-bottom:1px solid #fafafa;
          div {
            background: url(../../images/device.png) no-repeat left center;
            background-size: 0.46rem 0.41rem;
          }
        }
        &:nth-child(6) {
          margin-bottom: 0.2rem;
          div {
            background: url(../../images/reference.png) no-repeat left center;
            background-size: 0.46rem 0.41rem;
          }
        }
        &:nth-child(7) {
          margin-bottom: 0.2rem;
          div {
            background: url(../../images/deviceCheck.png) no-repeat left center;
            background-size: 0.46rem 0.41rem;
          }
        }
        &:nth-child(8) {
          margin-bottom: 0.2rem;
          div {
            background: url(../../images/loginout.png) no-repeat left center;
            background-size: 0.46rem 0.41rem;
          }
        }
      }
    }
  }
}
